import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JTree;
import javax.swing.ImageIcon;


public class Preferences extends JFrame {

	private JPanel contentPane;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Preferences frame = new Preferences();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Preferences() {
		
		try {
			UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 576, 478);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblTemplate = new JLabel("Template");
		lblTemplate.setBounds(21, 22, 55, 16);
		contentPane.add(lblTemplate);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(77, 17, 172, 26);
		contentPane.add(comboBox);
		
		JLabel lblNewLabel = new JLabel("Nome");
		lblNewLabel.setBounds(21, 66, 55, 16);
		contentPane.add(lblNewLabel);
		
		textField = new JTextField();
		textField.setBounds(77, 60, 195, 28);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JButton btnSalvar = new JButton("Salvar");
		btnSalvar.setBounds(274, 60, 90, 28);
		contentPane.add(btnSalvar);
		
		JTree tree = new JTree();
		tree.setEditable(true);
		tree.setBounds(21, 124, 520, 294);
		contentPane.add(tree);
		
		JLabel lblNewLabel_1 = new JLabel("");
		lblNewLabel_1.setIcon(new ImageIcon("assets/images/folder_option.png"));
		lblNewLabel_1.setBounds(401, 6, 128, 117);
		contentPane.add(lblNewLabel_1);
	}
}
